from datetime import datetime
from st2common.runners.base_action import Action

class mypythonaction(Action):
    def run(self, message):
        currTime = str(datetime.now())
        print(currTime)
        print("messge content:", message)
        
        if message == 'run err':
            return (False, message)
        print(message)
        return (True, message)

